cmake_minimum_required(VERSION 3.1)

get_filename_component(parentDirName ${CMAKE_CURRENT_SOURCE_DIR}/.. ABSOLUTE)
get_filename_component(parentDirName ${parentDirName} NAME)
get_filename_component(dirName ${CMAKE_CURRENT_SOURCE_DIR} NAME)
project(${parentDirName}__${dirName} LANGUAGES CXX)

add_executable(${PROJECT_NAME}
    main.cc
    HelloWindow.h HelloWindow.cc)


find_package(Qt5Core CONFIG REQUIRED)
find_package(Qt5Gui CONFIG REQUIRED)
find_package(Qt5Widgets CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME}
    Qt5::Core Qt5::Gui Qt5::Widgets)
